package com.amado.course14;

/**
 * 封装，继承，多态
 * 
 * @author Administrator
 *
 */
public class BasePerson {
	private String name;
	private String age;
	private int sex;
	//person.name ="张三"
	//person.setName("张三");
	
	//System.out.println(person.name);
	//System.out.println(person.getName());
	public String getName() {
		return name;
	}
	//李四
	public void setName(String name) {
		//张三
		this.name = name;
	}
	
	public String getAge() {
		return age;
	}

	public void setAge(String age) {
		this.age = age;
	}

	public int getSex() {
		return sex;
	}

	public void setSex(int sex) {
		this.sex = sex;
	}
	
	public static void main(String[] args) {
		BasePerson person = new BasePerson();
		person.setName("张三");
		System.out.println(person.getName());
	}

}
